<?php

require_once("config.php");
require_once("nusoap/nusoap.php");
require_once("utils.php");
require_once("Component.php");

class User extends Component {
	
	var $defaultColumns;
	var $columnMappings;
		
        function __construct($proxy) {

		$this->defaultColumns = array(
                                        'first_name',
                                        'last_name',
                                        'user_name',
                                        'status',
                                        );

		$this->columnMappings = array ();

		parent::__construct("Users", "users", $proxy, $this->defaultColumns);
        }


	function getRecord($condition){

                $query = $this->getQueryColumns($this->defaultColumns);
                $query = 'select '.$query.' from users ';

                return $this->getRow($query);
        }







}
	
$component = new User($proxy);

?>
